package com.dd.common.dto.user;

import com.dd.common.pojo.dto.TimeDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Pattern;

/**
 * @author cheng
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户查询DTO")
@Data
public class UserQueryDTO extends TimeDTO implements java.io.Serializable {
    @Schema(description = "昵称", example = "帅到被人砍")
    private String nickname;
    @Schema(description = "真实姓名", example = "柳如烟")
    private String realName;
    @Schema(description = "性别：0-未知 1-男 2-女", example = "1")
    @Range(min = 0, max = 2, message = "性别只能是0-未知 1-男 2-女")
    private Integer gender;

}
